package com.koala.design.template;

/**
 * 大象处理器
 *
 * @author yantingrui
 * @date 2022/8/15   11:03
 */
public class FaTigerDeal extends AbstractDeal {

    private Goods goods;

    @Override
    public void openFridge() {
        System.out.println("胖虎处理器 打开冰箱");
    }

    @Override
    public void putIntoGoods() {
        System.out.println("胖虎处理器把" + goods.getName() + "放进冰箱");
    }

    @Override
    public void closeFridge() {
        System.out.println("胖虎处理器 关闭冰箱");
    }

    public FaTigerDeal(String name) {
        this.goods = new Goods(name);
    }
}
